package com.gege.hmily.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gege.hmily.account.model.Account;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaogege
 * @since 2021-05-30
 */
public interface AccountMapper extends BaseMapper<Account> {

    int deduct(@Param("userId") String userId,
               @Param("amount") BigDecimal amount);

}
